<?php
namespace ImiApp\Module\Member\Model\Base;

use Imi\Model\Model as Model;
use Imi\Model\Annotation\DDL;
use Imi\Model\Annotation\Table;
use Imi\Model\Annotation\Column;
use Imi\Model\Annotation\Entity;

/**
 * Banner图 基类
 * @Entity
 * @Table(name="fa_banner", id={"id"})
 * @DDL("CREATE TABLE `fa_banner` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `banner_image` varchar(255) DEFAULT NULL COMMENT 'banner图',
  `title` varchar(30) DEFAULT NULL COMMENT '标题',
  `url` varchar(255) DEFAULT NULL COMMENT '跳转链接',
  `weigh` int(10) DEFAULT NULL COMMENT '权重',
  `crteatime` int(10) DEFAULT NULL COMMENT '创建时间',
  PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COMMENT='Banner图'")
 * @property int $id 
 * @property string $bannerImage banner图
 * @property string $title 标题
 * @property string $url 跳转链接
 * @property int $weigh 权重
 * @property int $crteatime 创建时间
 */
abstract class BannerBase extends Model
{
    /**
     * id
     * @Column(name="id", type="int", length=10, accuracy=0, nullable=false, default="", isPrimaryKey=true, primaryKeyIndex=0, isAutoIncrement=true)
     * @var int
     */
    protected $id;

    /**
     * 获取 id
     *
     * @return int
     */ 
    public function getId()
    {
        return $this->id;
    }

    /**
     * 赋值 id
     * @param int $id id
     * @return static
     */ 
    public function setId($id)
    {
        $this->id = $id;
        return $this;
    }

    /**
     * banner图
     * banner_image
     * @Column(name="banner_image", type="varchar", length=255, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $bannerImage;

    /**
     * 获取 bannerImage - banner图
     *
     * @return string
     */ 
    public function getBannerImage()
    {
        return $this->bannerImage;
    }

    /**
     * 赋值 bannerImage - banner图
     * @param string $bannerImage banner_image
     * @return static
     */ 
    public function setBannerImage($bannerImage)
    {
        $this->bannerImage = $bannerImage;
        return $this;
    }

    /**
     * 标题
     * title
     * @Column(name="title", type="varchar", length=30, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $title;

    /**
     * 获取 title - 标题
     *
     * @return string
     */ 
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * 赋值 title - 标题
     * @param string $title title
     * @return static
     */ 
    public function setTitle($title)
    {
        $this->title = $title;
        return $this;
    }

    /**
     * 跳转链接
     * url
     * @Column(name="url", type="varchar", length=255, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var string
     */
    protected $url;

    /**
     * 获取 url - 跳转链接
     *
     * @return string
     */ 
    public function getUrl()
    {
        return $this->url;
    }

    /**
     * 赋值 url - 跳转链接
     * @param string $url url
     * @return static
     */ 
    public function setUrl($url)
    {
        $this->url = $url;
        return $this;
    }

    /**
     * 权重
     * weigh
     * @Column(name="weigh", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $weigh;

    /**
     * 获取 weigh - 权重
     *
     * @return int
     */ 
    public function getWeigh()
    {
        return $this->weigh;
    }

    /**
     * 赋值 weigh - 权重
     * @param int $weigh weigh
     * @return static
     */ 
    public function setWeigh($weigh)
    {
        $this->weigh = $weigh;
        return $this;
    }

    /**
     * 创建时间
     * crteatime
     * @Column(name="crteatime", type="int", length=10, accuracy=0, nullable=true, default="", isPrimaryKey=false, primaryKeyIndex=-1, isAutoIncrement=false)
     * @var int
     */
    protected $crteatime;

    /**
     * 获取 crteatime - 创建时间
     *
     * @return int
     */ 
    public function getCrteatime()
    {
        return $this->crteatime;
    }

    /**
     * 赋值 crteatime - 创建时间
     * @param int $crteatime crteatime
     * @return static
     */ 
    public function setCrteatime($crteatime)
    {
        $this->crteatime = $crteatime;
        return $this;
    }

}
